package handler;

import java.io.File;
import java.io.FileInputStream;

import org.junit.Test;

import com.esen.util.StmFunc;

public class GraphXMLHandler {

	
	@Test
  public static String readXML () throws Exception{
  	File file = new File("src/config/table.xml");
  	FileInputStream in = new FileInputStream(file);
  	try{
  		String readString = StmFunc.readString(in, "utf-8");
  		readString = readString.replaceAll("\n", "");
  		System.out.println(readString);
  		return readString;
  		//  		Document doc = XmlFunc.getDocument(in);
//  		Element root = doc.getDocumentElement();
//  		NodeList childNodes = root.getChildNodes();
//  		for(int i =0,len = childNodes.getLength();i<len;i++){
//  			Node item = childNodes.item(i);
//  			short nodeType = item.getNodeType();
//  			if(nodeType == 1){
//  				
//  			}
//  		}
  	}finally{
  		in.close();
  	}
  }
}
